﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
    [DataContract, Table("hrm_mp_job_site_levels")]
    public class MasJobSiteLevel
    {
        public MasJobSiteLevel()
        {
            //JobSites = new HashSet<JobSite>();
        }

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "JobSiteLevelId", ResourceType = typeof(Resources.MasJobSiteLevelResource))]
        [Column("job_site_level_seq")]
        public int JobSiteLevelId { get; set; }

        [DataMember, Display(Name = "Code", ResourceType = typeof(Resources.MasJobSiteLevelResource))]
        public string Code { get; set; }

        [DataMember, Display(Name = "Name", ResourceType = typeof(Resources.MasJobSiteLevelResource))]
        [Column("job_site_level_name")]
        public string Name { get; set; }

        //[DataMember]
        //public ICollection<JobSite> JobSites { get; set; }
    }
}
